package com.fun_ordering.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fun_ordering.pojo.DishInfo;
import com.fun_ordering.pojo.DishInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DishInfoMapper  extends BaseMapper<DishInfo> {
    int countByExample(DishInfoExample example);

    int deleteByExample(DishInfoExample example);

    int deleteByPrimaryKey(Integer dishId);

    int insert(DishInfo record);

    int insertSelective(DishInfo record);

    List<DishInfo> selectByExample(DishInfoExample example);

    DishInfo selectByPrimaryKey(Integer dishId);

    int updateByExampleSelective(@Param("record") DishInfo record, @Param("example") DishInfoExample example);

    int updateByExample(@Param("record") DishInfo record, @Param("example") DishInfoExample example);

    int updateByPrimaryKeySelective(DishInfo record);

    int updateByPrimaryKey(DishInfo record);
}